﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Smartec.Accounts.Camel.AMS.Model.Entities.Attributes
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    internal sealed class CustomDisplayAttribute : DisplayNameAttribute
    {
       public string NameEN;
       public string NameAR;
       public CustomDisplayAttribute(string ar, string en)
            : base()
        { NameEN = en; NameAR = ar; }
        public override string DisplayName
        {
            get
            {
                return LocalizationContext.Language == Language.EN ? NameEN : NameAR;
            }
        }
    }
}
